package com.szrt.javaweb.ioc.demo05.dao.impl;

import org.springframework.stereotype.Repository;

import com.szrt.javaweb.ioc.demo05.dao.CatDao;


@Repository
public class CatDaoImpl implements CatDao {
	
	public CatDaoImpl(){
		System.out.println("调用CatDaoImpl的构造方法...");
	}

	@Override
	public int add(String name) {
		System.out.println("添加1只猫成功..."+name);
		return 0;
	}

}
